package com.zb.spring5.ioc.entity;

import org.springframework.context.ApplicationEvent;

/**
 * spring 事件发布 监听
 */
public class MessageEvent extends ApplicationEvent {
    private String msg;

    public MessageEvent(Object source,String message) {
        super(source);
        this.msg = message;
    }

    public String getMsg() {
        return msg;
    }
}
